function getStock(){
    return {
        age:18,
        pic:{
            pic1:1000,
            pic2:200
        }
    }
}

var {age:agex,pic:{pic2}} = getStock();
// console.log(agex);
// console.log(pic2);
var arr = [1,2,3,4,5];

// var [,,,...num] = arr;

// console.log(num);

function doSome([num1,num2,...num]){
    console.log(num1);
    console.log(num2);
    console.log(num);
    
}
doSome(arr)

